package so.sao.code.service.domain.entity;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import java.util.Date;

/**
 * Created by Administrator on 2017/7/11.
 */
@Entity
@Data
@EntityListeners(AuditingEntityListener.class)
public class TagOperationLog extends BaseEntity {
    //来源 客户端
    private String source;
    //操作了什么
    private String operation;
    //码段区间
    private String range;

    private String userName;

    private long tagBatchId = 0;


    public TagOperationLog() {
    }

    public TagOperationLog(long tagBatchId, String source, String operation, String range, String userName) {
        //this.rangeId = rangeId;
        this.tagBatchId = tagBatchId;
//        this.setCreateUserId(createUserId);
//        this.setCreateDate(new Date());
        this.userName = userName;
        this.operation = operation;
        this.range = range;
        this.source = source;
    }

}
